<template>
  <div 
    class="info-card"
    @click="$emit('click')"
  > 
    <div>
      <i class="el-icon-data-line" />
      <span>{{ title }}</span>
    </div>
    <div class="card-count">{{ count }}</div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true
    },
    count: {
      type: String,
      required: true
    }
  },
  emits: ['click']
}
</script>

<style lang="scss" scoped>
.info-card{
  background-color: #f5f6fa;
  border-radius: 5px; 
  padding:8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  .card-count{
    font-weight: bold;
    font-size: 18px;
  }
}

</style>
